import { BasicColumn, FormSchema } from '@/components/table';

export const columns: BasicColumn[] = [
  {
    title: '文件名称',
    dataIndex: 'fileName',
    width: 130,
  },
  {
    title: '导出人',
    dataIndex: 'nickName',
    width: 120,
  },
  {
    title: '导出时长(毫秒)',
    dataIndex: 'exportTime',
    width: 90,
  },
  {
    title: '导出条件',
    dataIndex: 'logParams',
    width: 250,
  },
  {
    title: '创建日期',
    dataIndex: 'createTime',
    width: 150,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'startDate',
    label: '开始日期',
    component: 'DatePicker',
    colProps: { span: 5 },
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'endDate',
    label: '结束日期',
    component: 'DatePicker',
    colProps: { span: 5 },
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'nickName',
    label: '导出人',
    component: 'Input',
    required: false,
  },
  {
    field: 'fileName',
    label: '文件名称',
    component: 'Input',
    required: false,
  },
];
